package com.gm.springboot.service.impl;

import com.github.pagehelper.PageHelper;
import com.gm.springboot.bean.GalGame;
import com.gm.springboot.bean.Major;
import com.gm.springboot.mapper.GalgameMapper;
import com.gm.springboot.mapper.MajorMapper;
import com.gm.springboot.service.GalgameService;
import com.gm.springboot.service.MajorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author Administrator
 * @Date 2020/7/2 17:24
 **/
@Service
public class GalgameServiceImpl implements GalgameService {
    @Autowired
    GalgameMapper galGameMapper;
    @Override
    public List<GalGame> findGalGameAll(Integer page, Integer size) {
        PageHelper.startPage(page,size);
        return this.galGameMapper.findGalGameAll();
    }

    @Override
    public int delGalGame(Integer galid) {
        return this.galGameMapper.delGalGame(galid);
    }

    @Override
    public int addGalGame(GalGame galGame) {
        return this.galGameMapper.addGalGame(galGame);
    }

    @Override
    public GalGame findGalGameById(Integer galid) {
        return this.galGameMapper.findGalGameById(galid);
    }

    @Override
    public int updGalGame(GalGame galGame) {
        return this.galGameMapper.updGalGame(galGame);
    }
}
